package com.lh.auth.client;

import com.lh.user.pojo.UserDo;
import org.hibernate.validator.constraints.Length;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author liuhe
 * @date 2020/07/07
 */
@FeignClient("user-service")
public interface UserClient {

    @GetMapping("query")
    UserDo queryUser(
            @RequestParam("username") String username,
            @RequestParam("password") String password);

}
